package com.xueyi.system.facilitieAccess.domain.po;

import java.util.Date;

import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

/**
 * 设施检修 持久化对象
 *
 * @author xueyi
 */
@TableName(value = "base_facilitie_access", excludeProperty = {"name", "sort", "status"}, autoResultMap = true)
public class BaseFacilitieAccessPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 设施id
     */
    @Excel(name = "设施id")
    @TableField("facilite_id")
    private String faciliteId;

    /**
     * 设施名称
     */
    @Excel(name = "设施名称")
    @TableField("facilite_name")
    private String faciliteName;

    /**
     * 检修内容
     */
    @Excel(name = "检修内容")
    @TableField("content")
    private String content;

    /**
     * 检修日期
     */
    @Excel(name = "检修日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("access_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date accessTime;

    /**
     * 验收日期
     */
    @Excel(name = "验收日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("check_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date checkTime;

    /**
     * 检修人
     */
    @Excel(name = "检修人")
    @TableField("access_by")
    private String accessBy;

    /**
     * 验收人
     */
    @Excel(name = "验收人")
    @TableField("check_by")
    private String checkBy;


    /**
     * 检修人
     */
    @Excel(name = "检修人id")
    @TableField("access_by_id")
    private String accessById;

    /**
     * 验收人
     */
    @Excel(name = "验收人")
    @TableField("check_by_id")
    private String checkById;


    /**
     * 附件
     */
    @TableField(value = "accessory", typeHandler = FastjsonTypeHandler.class)
    private JSONArray accessory;

    public void setFaciliteId(String faciliteId) {
        this.faciliteId = faciliteId;
    }

    public String getFaciliteId() {
        return faciliteId;
    }

    public void setFaciliteName(String faciliteName) {
        this.faciliteName = faciliteName;
    }

    public String getFaciliteName() {
        return faciliteName;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setAccessTime(Date accessTime) {
        this.accessTime = accessTime;
    }

    public Date getAccessTime() {
        return accessTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setAccessBy(String accessBy) {
        this.accessBy = accessBy;
    }

    public String getAccessBy() {
        return accessBy;
    }

    public void setCheckBy(String checkBy) {
        this.checkBy = checkBy;
    }

    public String getCheckBy() {
        return checkBy;
    }

    public void setAccessory(JSONArray accessory) {
        this.accessory = accessory;
    }

    public JSONArray getAccessory() {
        return accessory;
    }

    public String getAccessById() {
        return accessById;
    }

    public void setAccessById(String accessById) {
        this.accessById = accessById;
    }

    public String getCheckById() {
        return checkById;
    }

    public void setCheckById(String checkById) {
        this.checkById = checkById;
    }
}
